'use strict'

exports.main = async (event, context) => {
  // 路线规划
  const { data } = await uniCloud.request({
    url: 'https://apis.map.qq.com/ws/direction/v1/driving/',
    data: {
      key: 'MB5BZ-Z75KZ-MYMXY-ZH4YM-VLXHF-BWFQ6',
      ...event
    }
  })
  //返回数据给客户端
  return data
}
